<?php

require_once 'SolomonAPI.php';


$config = array(
	"host" => "<url to solomon instance>",
	"port" => "<port>",
	"username"=>"<username>",
	"password"=>"<password>",
	"type" => "<json or xml>"
);
$response="NO RESPONSE YET!...";


try {
	//	Get all contacts filtered by mark
	// $filter=array("q" => "mark");
	// $response = solomonAPI::getContacts($config,$filter);
	
	// $response = solomonAPI::getContact($config,2);
	
	// $response = solomonAPI::getTagsForContact($config,22);
	



	//	Get the type information for contact metadata

	// $response = solomonAPI::getEmailTypes($config);
	
	// $response = solomonAPI::getTelephoneTypes($config);	

	// $response = solomonAPI::getWebsiteTypes($config);		

	// $response = solomonAPI::getAddressTypes($config);			
	
	
	
	//	Get the latest activity
	
	// $paging=array("pagesize"=>"2","page"=>"2");
	// $response = solomonAPI::getActvity($config,$paging);


	//	Notes

	// $paging=array("pagesize"=>"2","page"=>"2");
	// $response = solomonAPI::getNotesForContact($config,22,$paging);
	
	
	
	//	Tasks
	// $paging=array("pagesize"=>"2","page"=>"2");
	// $response = solomonAPI::getTasksForContact($config,22,$paging);

	
	
	// $filter=array("pagesize"=>"2","page"=>"2","t" => 1,"c" => "true");
	// $filter=array("t" => 0,"c" => "false","fd"=>"1240873200000","td"=>"1303945200000");
	// $response = solomonAPI::getTasksForUser($config,2,$filter);
	
	
	// $filter=array("t" => 0,"c" => "false","fd"=>"1240873200000","td"=>"1303945200000");
	// $response = solomonAPI::getTaskTypes($config);	

	
	
	// $filter=array("q" => "mark");
	// $response = solomonAPI::getUsers($config,$filter);
	
	$response = solomonAPI::getUser($config,1);
	
	
	//	Spit it out
	baseAPIClass::debug($response);

} catch (Exception $e) {
    echo($e->getMessage());
}
?>
